import { request } from '@ruifox-cms/utils'

 /******************************************************************************* */
// 视频上传
export function insertVideo(data) {
    return request({
        url: '/station/api/video/insert',
        method: 'post',
        data
    })
}
// 视频分页查询
export function getVideoPage(params) {
    return request({
        url: '/station/api/video/selectPage',
        method: 'get',
        params
    })
}
// 获取内容数据概览
export function getContentDashboard(params) {
    return request({
        url: '/station/api/content/dashboard',
        method: 'get',
        params
    })
}
// 获取内容列表
export function getContentPage(data) {
    return request({
        url: '/station/api/content/selectPage',
        method: 'post',
        data
    })
}
// 添加草稿内容
export function insertDraft(data) {
    return request({
        url: '/station/api/content/insertDraft',
        method: 'post',
        data
    })
}
// 添加内容
export function insertContent(data) {
    return request({
        url: '/station/api/content/insert',
        method: 'post',
        data
    })
}
// 修改内容
export function updateContent(data) {
    return request({
        url: '/station/api/content/update',
        method: 'post',
        data
    })
}
// 删除内容
export function deleteContent(data) {
    return request({
        url: '/station/api/content/delete',
        method: 'post',
        data
    })
}
// 预览内容
export function checkPreview(data) {
    return request({
        url: '/station/api/content/checkPreview',
        method: 'post',
        data
    })
}
// 获取内容详情
export function getContentDetail(params) {
    return request({
        url: '/station/api/content/selectByCatIdAndDataId',
        method: 'get',
        params
    })
}
// 获取内容详情
export function getContentDetailPlus(params) {
    return request({
        url: '/station/api/content/selectByCatIdAndDataIdPlus',
        method: 'get',
        params
    })
}
// 根据栏目id获取内容状态分类统计
export function getContentStatistics(params) {
    return request({
        url: '/station/api/content/statistics',
        method: 'get',
        params
    })
}
// 批量查内容详情
export function getContentDetails(data) {
    return request({
        url: '/station/api/content/selectList',
        method: 'post',
        data
    })
}
// 分页查询待审核
export function getAuditingPage(params) {
    return request({
        url: '/station/api/content/selectAuditingPage',
        method: 'get',
        params
    })
}
// word导入
export function insertContentByImport(data) {
    return request({
        url: '/resource/folderResource/import',
        method: 'post',
        data
    })
}
// 修改无需审核的属性
export function updateSystemData(data) {
    return request({
        url: '/station/api/content/updateSystemData',
        method: 'post',
        data
    })
}
// 批量修改无需审核的属性
export function batchUpdateSystemData(data) {
    return request({
        url: '/station/api/content/batchUpdateSystemData',
        method: 'post',
        data
    })
}
// 移动内容到其它栏目
export function moveContent(data) {
    return request({
        url: '/station/api/content/move',
        method: 'post',
        data
    })
}
// 批量移动内容到其它栏目
export function batchMoveContent(data) {
    return request({
        url: '/station/api/content/batchMove',
        method: 'post',
        data
    })
}
// 收藏内容
export function collectContent(data) {
    return request({
        url: '/station/api/content/collect',
        method: 'post',
        data
    })
}
// 批量收藏内容
export function batchCollectContent(data) {
    return request({
        url: '/station/api/content/batchCollect',
        method: 'post',
        data
    })
}
// 复制内容
export function copyContent(data) {
    return request({
        url: '/station/api/content/copy',
        method: 'post',
        data
    })
}
// 批量复制内容
export function batchCopyContent(data) {
    return request({
        url: '/station/api/content/batchCopy',
        method: 'post',
        data
    })
}
// 内容排序
export function updateSort(data) {
    return request({
        url: '/station/api/content/updateSort',
        method: 'post',
        data
    })
}
// 一键排序
export function resetSort(data) {
    return request({
        url: '/station/api/content/resetSort',
        method: 'post',
        data
    })
}
// 我的发布
export function getMyPublish(params) {
    return request({
        url: '/station/api/content/selectPublish',
        method: 'get',
        params
    })
}
// 我的收藏
export function getMyCollect(params) {
    return request({
        url: '/station/api/content/selectCollect',
        method: 'get',
        params
    })
}
// 同步站点内容到es搜索引擎
export function syncSiteContentToEs(params) {
    return request({
        url: '/station/api/content/dataSynchronize',
        method: 'get',
        params
    })
}